<template>

  <view class="member-remove-box">
    <!--    <view class="header pd15"
      :style="{height:systemInfo.statusBarHeight + boundingHeight + 30 +'px',lineHeight:systemInfo.statusBarHeight + boundingHeight+'px'}">
      <u-icon name="arrow-left" color="#fff" size="20"></u-icon>
      <text>测试</text>
    </view> -->
    <view class="remove-serch pd15">
      <u-search :show-action="false" @search="handleSearch" v-model="keywords" placeholder="请输入人员名称"
        :clearabled="true"></u-search>
    </view>
    <view class="remove-user  pd15">
      <scroll-view scroll-y="true" :style="{height:screenHeight - bottomPadding - boundingHeight - systemInfo.statusBarHeight - 120 + 'px'}">
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三2</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三33</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三33</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三33</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三33</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
        <view class="user-cont">
          <view class="user-left">
            <image class="user-avtor" src="@/static/interflow/avtor.png"></image>
            <view class="user-name"><text>张三555</text></view>
          </view>
          <view class="user-icon"><u-icon name="checkmark-circle" color="#dedcdc" size="15"></u-icon></view>
        </view>
      </scroll-view>
    </view>
    <view class="remove-btn" :style="'padding-bottom: ' + bottomPadding + 'px'">
      <view class="btn-box">
        <u-button shape="circle" text="移除"></u-button>
      </view>
    </view>

  </view>
</template>

<script>
  export default {
    components: {

    },
    data() {
      return {
        keywords: "",
        systemInfo: {},
        boundingHeight: "",
        bottomPadding:"",
        screenHeight:""

      };
    },
    //下拉刷新
    onPullDownRefresh() {

    },
    created() {


    },

    onLoad() {
      this.getHeight()
      uni.setNavigationBarTitle({
        title: '成员'
      });
    },
    async onShow() {

    },
    async mounted() {

    },

    methods: {
      handleSearch() {

      },
      getHeight() {
        let boundingHeight = uni.getMenuButtonBoundingClientRect();
        this.boundingHeight = boundingHeight.height;
        uni.getSystemInfo({
          success: res => {
            this.systemInfo = res;
             this.bottomPadding = (res.screenHeight - res.safeArea.bottom)||20;
             this.screenHeight = res.screenHeight;
            console.log(this.systemInfo, " this.systemInfo")
          }
        });
      },



    },
  };
</script>

<style lang="scss">
  .member-remove-box {
    .header {
      background: #e95115;
      display: flex;
      align-items: center;
      // justify-content: space-between;
      // padding-top: 15px;
      // padding-bottom: 15px;

      text {
        color: #fff;
      }
    }

    .remove-serch {
      margin-top: 20px;
      background: #fff;
    }

    .user-cont {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 15px;
      border-bottom: 1px solid #e9e6ea;
      padding-bottom: 10px;

      .user-left {
        display: flex;
        align-items: center;
      }

      image {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        margin-right: 5px;
      }
    }

    .remove-btn {
      position: fixed;
      bottom: 0px;
      background: #ffff;
      width: 100%;
      .btn-box {
       margin-left: 15px;
       margin-right: 15px;
      }
    }
  }
</style>s